package com.xjtu.weixin.service.impl;

import com.xjtu.weixin.service.TagService;
import me.chanjar.weixin.common.error.WxErrorException;
import me.chanjar.weixin.mp.api.WxMpService;
import me.chanjar.weixin.mp.api.WxMpUserTagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * ${DESCRIPTION}
 *
 * @author 杨凯
 * @create 2018-08-29 16:00
 **/
@Service
public class TagServiceImpl implements TagService {


	@Autowired
	private WxMpService wxMpService;

	@Override
	public void createTag(String tag) throws WxErrorException {
		final WxMpUserTagService userTagService = wxMpService.getUserTagService();
		userTagService.tagCreate(tag);
		//TODO 未对本地数据库进行保存
	}
}
